package com.douhao.personal.service;

import com.douhao.personal.model.Role;
import com.douhao.personal.util.Page;

import java.util.Map;
import java.util.Set;

public interface RoleService {

    //根据用户ID查询角色（role），放入到Authorization里。
    Set<String> findRoleByUserId(String userId);

    Page<Role> pageList(Role role, int pageNo, int pageSize);

    int deleteByPrimaryKey(Long id);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Role record);

    Map<String, Object> deleteRoleById(String ids);

    int insert(Role role);

}
